package com.ls.pattern.visitor;

import java.util.Random;

/**
 * @author 挥之以墨
 */
public class Engineer extends Employee {

    private int codeLines;

    public Engineer(String name) {
        super(name);
        this.codeLines = new Random().nextInt(10 * 10000);
    }

    @Override
    public void accept(IVisitor visitor) {
        visitor.visit(this);
    }

    public int getCodeLines() {
        return this.codeLines;
    }
}
